package com.cq.hd.member.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class CommissionBillSaveDto implements Serializable {

    @ApiModelProperty(value = "流水编号")
    private String billNo;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "下级经纪人id")
    private Long subAgentId;

    @ApiModelProperty(value = "收支类型(1-收入，2-支出)")
    private Integer billType;

    @ApiModelProperty(value = "交易类型（1-分销佣金入账，2-佣金提现，3-佣金提现失败退回）")
    private Integer tradeType;

    @ApiModelProperty(value = "关联交易单号（子订单号/提现单号）")
    private String relationTradeNo;

    @ApiModelProperty(value = "变动前余额")
    private BigDecimal beforeAmt;

    @ApiModelProperty(value = "变动金额")
    private BigDecimal tradeAmt;

    @ApiModelProperty(value = "变动后余额")
    private BigDecimal afterAmt;

    @ApiModelProperty(value = "交易时间（结算时间/提现时间）")
    private LocalDateTime tradeTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}
